import Vue from 'vue'
import Router from 'vue-router'

import Login from '@/view/Login'

// import HelloWorld from '../components/HelloWorld'

import AppMain from '@/view/AppMain'
import img from '@/view/img'

import userList from '@/view/sys/userList'
import userAdd from '@/view/sys/userAdd'
import userEdit from '@/view/sys/userEdit'

import roleList from '@/view/sys/roleList'

import employeeList from '@/view/hotel/employeeList'
import sellerList from '@/view/hotel/sellerList'
import sellerAdd from '@/view/hotel/sellerAdd'
import sellerUpdate from '@/view/hotel/sellerUpdate'
import seller1 from '@/view/hotel/seller1'
import sellerUpdate1 from '@/view/hotel/sellerUpdate1'
import roomList from '@/view/hotel/roomList'
import roommoneyList from'@/view/hotel/roommoneyList'
import roomAdd from '@/view/hotel/roomAdd'
Vue.use(Router)

export default new Router({
  routes: [{
      path: '/',
      name: 'Login',
      component: Login
    }, {
      path: '/AppMain',
      name: 'AppMain',
      component: AppMain,
      children: [{
        path: 'img',
        name: 'img',
        component: img
      },{
        path: 'userList',
        name: 'userList',
        component: userList
      },{
        path: 'userAdd',
        name: 'userAdd',
        component: userAdd
      },{
        path: 'userEdit',
        name: 'userEdit',
        component: userEdit
      },{
        path: 'roleList',
        name: 'roleList',
        component: roleList
      },{
        path: 'employeeList',
        name: 'employeeList',
        component: employeeList
      },
      {
        path: 'sellerList',
        name: 'sellerList',
        component: sellerList
      },
      {
        path: 'sellerAdd',
        name: 'sellerAdd',
        component: sellerAdd
      },
      {
        path: 'sellerUpdate',
        name: 'sellerUpdate',
        component: sellerUpdate
      },
      {
        path: 'seller1',
        name: 'seller1',
        component: seller1
      },
      {
        path: 'sellerUpdate1',
        name: 'sellerUpdate1',
        component: sellerUpdate1
      },
      {
        path: 'roomList',
        name: 'roomList',
        component: roomList
      },
      {
        path: 'roommoneyList',
        name: 'roommoneyList',
        component: roommoneyList
      },
      {
        path: 'roomAdd',
        name: 'roomAdd',
        component: roomAdd
      },
      ]
    }

  ]
})
